<%--
  Created by IntelliJ IDEA.
  User: ZT171
  Date: 2024/9/27
  Time: 20:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<p>
<form  action="user?action=add" method="post">

    <div class="layui-form-item">
        <div class="layui-inline">
            <div class="layui-input-inline layui-input-wrap">
            <a class="layui-btn laydate-bg-blue" href="add.jsp">添加用户</a>
            <label class="layui-form-label">用户名</label>
                <input type="tel" name="name" autocomplete="off"  lay-affix="clear" class="layui-input demo-phone">
            </div>
        </div>
    </div>
</form>
</p>

<c:forEach items="${users}" var="u">
    <tr>
        <td>${u.id}</td>
        <td>${u.name}</td>
        <td>${u.pass}</td>
        <td>
            <a href="user?action=toupdate&id=${u.id}">修改</a>
            <a href="user?action=delete?id=${u.id}">删除</a>
        </td>

    </tr>
    <p>${u.id}------${u.name}-----${u.pass}</p>
</c:forEach>
</body>
</html>

